export interface UserInfo {
  userInfo: {
    username: string;
    mobile: string;
    email: string;
    nickname: string;
    join_time: number;
    last_login_ip: string;
    last_login_time: number;
    avatar: string;
    id: number;
    token: string;
    refresh_token: string;
    isNewUser: boolean;
    expiresTime: number;
    refreshTokenExpiresTime: number;
    c_login_days: number;
    login_total_days: number;
  },
  isNewUser: boolean;
  isGuest: boolean;
}

export interface LoginRequest {
  code: string;
}



export interface RefreshTokenRequest {
  refreshToken: string;
}

export interface RefreshTokenResponse {
  token: string;
  refreshToken: string;
}


export interface UploadAdRecordRequest {
  appid: string;
  ad_id: string;
  remark: string;
}

export interface UserAdInfo {
    user_id: number;
    avatar: string;
    ad_count: number;
    today_ad_count: number;
    today_ads: {
        id: number;
        ad_id: string;
        publisher_revenue: string;
        create_time: number;
    }[];
}


export interface AppDetail {
  id: number;
  appid: string;
  isOpenAd: number;
  isOpenReward: number;
  isOpenBanner: number;
  isOpenNative: number;
  isOpenInter: number;
  status: number;
  remark: string;
  weigh: number;
  create_time: number;
  update_time: number;
  maxAdCount: number;
}

